package com.multi.tenant.vo;

import com.multi.common.annotation.Excel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Description
 * @ClassName BkTenantInfoVo
 * @Author pzj
 * @Data 2024/11/18 11:14
 */
@Data
@Accessors(chain = true)
public class BkTenantInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 租户名称
     */
    @Size(min = 2, max = 16, message = "租户名称范围5-16个字符")
    private String tenantName;

    /**
     * 租户头像
     */
    private String tenantAvatar;

    /**
     * 租户电话
     */
    @Length(min = 11,max = 11,message = "请确定电话格式")
    private String tenantTel;

    /**
     * 租户管理者
     */
    @Length(min = 2,max = 16, message = "租户管理者返回2~16个字符")
    private String tenantLeader;

    /**
     * 租户AppID
     */
    @NotBlank(message = "租户AppID不能为空")
    private String tenantAppid;

    /**
     * 租户AppSecret
     */
    @NotBlank(message = "租户AppSecret不能为空")
    private String tenantAppsecret;

    /**
     * 租户类型
     */
    @NotNull(message = "请确定租户类型")
    private String tenantType;

    /**
     * 租户地址
     */
    private String tenantAddress;

    /**
     * 租户经度
     */
    private Long tenantLongitude;

    /**
     * 租户维度
     */
    private Long tenantLatitude;

    /**
     * 租借时长（单位：年；默认一年）
     */
    @NotNull(message = "签约时长不能为空")
    private Integer tenantTime;

    /**
     * 状态
     */
    private Integer status;

}
